
package com.sy.core.service;


import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sy.core.model.SysDeptment;
import com.sy.core.mapper.SysDeptmentMapper;





/**
 * 	TODO 请用一句话描述该类的作用
 * @author CaiXinChong email:1060296473@qq.com
 * @version 1.0
 * @since 1.0
 */

@Service("SysDeptmentService")
public class SysDeptmentService  {

	protected final Logger logger = LoggerFactory.getLogger(SysDeptmentService.class);

   	@Autowired
    private SysDeptmentMapper  sysDeptmentMapper;

	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (查询对象集合)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public List<SysDeptment> queryByCondition(SysDeptment sysDeptment){
		return sysDeptmentMapper.queryByCondition(sysDeptment);
	};

	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (根据主键查询对象)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public SysDeptment queryByPrimaryKey(String key){
		return sysDeptmentMapper.queryByPrimaryKey(key);
	};

	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (新增单个对象)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public void insert(SysDeptment sysDeptment){ sysDeptmentMapper.insertSelective(sysDeptment);};
	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (修改单个对象)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public void update(SysDeptment sysDeptment){ sysDeptmentMapper.updateSelective(sysDeptment);};


	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (根据主键删除对象)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public void delete(String pk){ sysDeptmentMapper.deleteByPrimaryKey(pk);};


}
